import {useParams} from "react-router";
import "./index.scss";

export default function Detail() {
  const params = useParams();
  const videoSrc = process.env.REACT_APP_BACKEND_URL || "";
  return (
    <div className={"ToyDetail"}>
      <video className={"video"} src={videoSrc + "/videos/" + params.id + ".mp4"} controls autoPlay muted loop>
        您的浏览器不支持 video 标签。
      </video>
    </div>
  );
}
